package com.star.mentor.struct;

import com.star.mentor.dto.EvaluationItemSaveDTO;
import com.star.mentor.dto.EvaluationItemUpdateDTO;
import com.star.mentor.dto.EvaluationSaveDTO;
import com.star.mentor.dto.EvaluationUpdateDTO;
import com.star.mentor.entity.Evaluation;
import com.star.mentor.entity.EvaluationItem;
import com.star.system.dto.MenuSaveDTO;
import com.star.system.dto.MenuUpdateDTO;
import com.star.system.entity.Menu;
import com.star.system.vo.MenuTreeVO;
import com.star.system.vo.MenuUserTreeVO;
import com.star.system.vo.Meta;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author yangzj
 */
@Mapper
public interface EvaluationStruct {
    EvaluationStruct INSTANCE = Mappers.getMapper(EvaluationStruct.class);

    /**
     * 到
     *
     * @param dto dto
     * @return {@link Evaluation}
     */
    Evaluation to(EvaluationSaveDTO dto);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link Evaluation}
     */
    Evaluation to(EvaluationUpdateDTO dto);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link EvaluationItem}
     */
    EvaluationItem to(EvaluationItemSaveDTO dto);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link EvaluationItem}
     */
    EvaluationItem to(EvaluationItemUpdateDTO dto);
}
